home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
maximus
/
mul100.zip
/
BSORT.SCR
< prev
next >
Wrap
Text File
|
1993-02-01
|
2KB
|
52 lines
// BSORT.SCR -- Maximus User Base Sorter -- Version 1.00
//
// Script program for MUL - the Maximus User Language
// MUL is (C) Copyright 1990-93 by CodeLand Australia
// BSORT sorts the user base using the selected method, and rewrites
// the user base. Set the 'sortmethod' variable below to the sort type
// of your preference.
char *ufile = "USER.BBS"; // Path & name of Maximus user file
//char *ufile = "C:\\BBS\\USER.BBS"; // Path & name of Maximus user file
// AVAILABLE SORT METHODS:
// IDX_DEFAULT, IDX_FNAME, IDX_LNAME, IDX_CITY, IDX_PWD, IDX_DATE,
// IDX_PRIV, IDX_CALLS, IDX_DNLD, IDX_UPLD, IDX_PHONE
int sortmethod = IDX_LNAME; // Sort method
char *banner = "BSORT v1.00"; // Script banner
char *desc = "Maximus User Base Sorter"; // Description
main () // Main program
{
printf ("\n%s - %s\n\n",banner,desc); // Announce
// Open the user base
if (!BaseOpen (ufile)) {
printf ("\nERROR opening user file \"%s\"\n\n",ufile);
saybibi (); exit ();
}
printf ("Sorting the base .. "); // Notify
BaseSort (sortmethod); // Sort the user base
printf ("\nRewriting the base .. "); // Notify
BasePack (ufile); // Rewrite the user file
printf ("\n"); // End notify
BaseClose (); // Close the user base
saybibi (); // Was it good for you too?
}
// Byebye
saybibi ()
{
puts ("\nBSort done!\n");
}
// End of script